package net.cyl.service;

import net.cyl.controller.request.TrafficPageRequest;
import net.cyl.controller.request.UseTrafficRequest;
import net.cyl.model.EventMessage;
import net.cyl.model.TrafficDO;
import com.baomidou.mybatisplus.extension.service.IService;
import net.cyl.util.JsonData;
import net.cyl.vo.TrafficVO;

import java.util.Map;

/**
 * <p>
 * 流量包信息表 服务类
 * </p>
 *
 * @author 曹玉林
 * @since 2025-05-09
 */
public interface TrafficService extends IService<TrafficDO> {
    void handleTrafficMessage(EventMessage eventMessage);


    Map<String, Object> pageAvailable(TrafficPageRequest request);

    TrafficVO detail(long trafficId);

    void deleteExpireTraffic();



    JsonData reduce(UseTrafficRequest useTrafficRequest);
}
